package cn.edu.ctbu.datajpa2.Repository;

import cn.edu.ctbu.datajpa2.domain.Student;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StudentRepository extends JpaRepository<Student,Integer> {


    List<Student> findByNameLike(String name);


    List<Student> findByNameAndPassword(String name,String password);

}
